import request from '@/utils/request'

// 查询校长信箱列表
export function listMailbox(query) {
  return request({
    url: '/basic/mailbox/list',
    method: 'get',
    params: query
  })
}

// 查询校长信箱详细
export function getMailbox(id) {
  return request({
    url: '/basic/mailbox/' + id,
    method: 'get'
  })
}

// 新增校长信箱
export function addMailbox(data) {
  return request({
    url: '/basic/mailbox',
    method: 'post',
    data: data
  })
}

// 修改校长信箱
export function updateMailbox(data) {
  return request({
    url: '/basic/mailbox',
    method: 'put',
    data: data
  })
}

// 删除校长信箱
export function delMailbox(id) {
  return request({
    url: '/basic/mailbox/' + id,
    method: 'delete'
  })
}

// 导出校长信箱
export function exportMailbox(query) {
  return request({
    url: '/basic/mailbox/export',
    method: 'get',
    params: query
  })
}